package com.wyh.service.g3service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.wyh.domain.po.g3po.Feeclassification;

import java.util.List;
import java.util.Map;

/**
* @author Kirsch
* @description 针对表【feeclassification(费项分类表)】的数据库操作Service
* @createDate 2024-05-21 09:56:38
*/
public interface FeeclassificationService extends IService<Feeclassification> {


    /**
     * 获取树形结构
     */
    List<Map<String, Object>> getTreeStructure();

    /**
     * 添加分类
     */
    void addFeeclassification(Feeclassification feeclassification);


    /**
     * 删除分类
     */
    void deleteFeeclassification(Integer id);


    boolean hasChildren(Integer id);

    boolean hasFeeItems(Integer id);

    /**
    编辑分类
     */
    void editFeeclassification(Integer id, Feeclassification feeClassification);

    /**
     * 搜索分类
     */
    List<Feeclassification> searchFeeclassification(String keyword);
}
